import http from '@/utils/http'

export const getListApi = async (param) => {
  return await http.get("api/role/list",param);
}
export const addRoleApi = async (param) => {
  return await http.post("/api/role",param)
}
export const editRoleApi = async (param) => {
  return await http.put("/api/role",param)
}

export const deleteRoleApi = async (param) => {
  return await http.delete("/api/role",param)
}

//权限树回显
export const getAssignRoleApi = async (param) => {
  return await http.get("/api/role/getAssignShow",param)
}
//分配权限的保存
export const saveAssignRoleApi = async (param) => {
  return await http.post("/api/role/saveRoleMenu",param)
}
